package com.icode.service.impl.user;

import com.icode.core.model.manage.Investigate;
import com.icode.dao.LuckDao;
import com.icode.service.user.LuckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: xianfei
 * Date: 15-3-18
 * Time: 下午12:43
 * To change this template use File | Settings | File Templates.
 */
@Service("luckService")
@Transactional
public class LuckServiceImpl implements LuckService {

    @Autowired
    private LuckDao luckDao;


    @Override
    @Transactional
    public List<Investigate> findAllInvestigate() {
        return luckDao.findAll(Investigate.class);
    }
}
